class NhanvienController < ApplicationController
  layout "nhanvien_layout"
  
  def quanligiohang
    @giohangs = Giohang.where(:status=>"3")
    
  end

  def banhang
    @muasam = Giohang.where(:status=>"3")
   
    @muasam.each do |sanpham|
      if(current_user)
        
        sanpham.update_attributes(:status=>"4");
        
      else

      end
    end
    redirect_to :back
  end
end
